package com.pf.config;


import org.apache.http.client.config.RequestConfig;

public class RequestConfigHolder {

    private static final ThreadLocal<RequestConfig> threadLocal = new ThreadLocal<>();

    public static void put(RequestConfig requestConfig){
        threadLocal.set(requestConfig);
    }

    public static RequestConfig get(){
        return threadLocal.get();
    }

    public static void clear(){
        threadLocal.remove();
    }
}
